home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / mac / Sample Code / QuickTime / QuickTimeIntro / WiredSprites / Clippings / AddSpriteActions.clp / AddSpriteActions.clp.rsrc
MacOS Resource Fork  |  2000-10-06  |  7.0 KB  |  [clpt/drag]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacOS Resource Fork (archive/rsrc).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert MacOS Resource Fork (archive/rsrc) magic Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert BeOS Resource Data (archive/beOSResourceData) ext Unsupported
1% dexvert AppleSingle (archive/appleSingle) fallback Supported
100% file AppleDouble encoded Macintosh file default
99% file data default
56% TrID Mac AppleDouble encoded default
28% TrID TTComp archive compressed (bin-2K) default (weak)
14% TrID MacBinary 1 default (weak)
100% siegfried fmt/503 AppleDouble Resource Fork (2) default
100% lsar AppleSingle default
100% gt2 MAC Bilddatei default (weak)


id metadata
keyvalue
macFileType[clpt]
macFileCreator[drag]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 16 07 00 02 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 02 00 00 00 09 00 00 |........|........|
|00000020| 00 32 00 00 00 20 00 00 | 00 02 00 00 00 52 00 00 |.2... ..|.....R..|
|00000030| 1b b6 63 6c 70 74 64 72 | 61 67 01 00 00 00 00 00 |..clptdr|ag......|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 01 00 00 00 | 1b 70 00 00 1a 70 00 00 |........|.p...p..|
|00000060| 00 46 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.F......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 00 00 14 41 64 64 53 70 | 72 69 74 65 41 63 74 69 |...AddSp|riteActi|
|00000090| 6f 6e 73 2e 63 6c 70 6c | 70 63 6c 70 63 6c 70 70 |ons.clpl|pclpclpp|
|000000a0| 70 79 02 00 63 6c 70 74 | 64 72 61 67 01 00 00 80 |py..clpt|drag....|
|000000b0| 00 01 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 b5 40 ee 4d | 00 00 00 00 00 00 1b b6 |.....@.M|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 1a 48 09 2f | 2f 2f 2f 2f 2f 2f 2f 2f |.....H./|////////|
|00000160| 2f 0d 09 2f 2f 0d 09 2f | 2f 20 61 64 64 20 61 63 |/..//../|/ add ac|
|00000170| 74 69 6f 6e 73 20 74 6f | 20 74 68 65 20 73 69 78 |tions to| the six|
|00000180| 20 73 70 72 69 74 65 73 | 0d 09 2f 2f 0d 09 2f 2f | sprites|..//..//|
|00000190| 2f 2f 2f 2f 2f 2f 2f 2f | 0d 0d 09 2f 2f 20 61 64 |////////|...// ad|
|000001a0| 64 20 67 6f 20 74 6f 20 | 62 65 67 69 6e 6e 69 6e |d go to |beginnin|
|000001b0| 67 20 62 75 74 74 6f 6e | 0d 09 6d 79 45 72 72 20 |g button|..myErr |
|000001c0| 3d 20 51 54 43 6f 70 79 | 41 74 6f 6d 28 6d 79 42 |= QTCopy|Atom(myB|
|000001d0| 65 67 69 6e 42 75 74 74 | 6f 6e 2c 20 6b 50 61 72 |eginButt|on, kPar|
|000001e0| 65 6e 74 41 74 6f 6d 49 | 73 43 6f 6e 74 61 69 6e |entAtomI|sContain|
|000001f0| 65 72 2c 20 26 6d 79 42 | 65 67 69 6e 41 63 74 69 |er, &myB|eginActi|
|00000200| 6f 6e 42 75 74 74 6f 6e | 29 3b 0d 09 69 66 20 28 |onButton|);..if (|
|00000210| 6d 79 45 72 72 20 21 3d | 20 6e 6f 45 72 72 29 0d |myErr !=| noErr).|
|00000220| 09 09 67 6f 74 6f 20 62 | 61 69 6c 3b 0d 0d 09 41 |..goto b|ail;...A|
|00000230| 64 64 53 70 72 69 74 65 | 53 65 74 49 6d 61 67 65 |ddSprite|SetImage|
|00000240| 49 6e 64 65 78 41 63 74 | 69 6f 6e 28 6d 79 42 65 |IndexAct|ion(myBe|
|00000250| 67 69 6e 41 63 74 69 6f | 6e 42 75 74 74 6f 6e 2c |ginActio|nButton,|
|00000260| 20 6b 50 61 72 65 6e 74 | 41 74 6f 6d 49 73 43 6f | kParent|AtomIsCo|
|00000270| 6e 74 61 69 6e 65 72 2c | 20 6b 51 54 45 76 65 6e |ntainer,| kQTEven|
|00000280| 74 4d 6f 75 73 65 43 6c | 69 63 6b 2c 20 30 2c 20 |tMouseCl|ick, 0, |
|00000290| 4e 55 4c 4c 2c 20 30 2c | 20 30 2c 20 4e 55 4c 4c |NULL, 0,| 0, NULL|
|000002a0| 2c 20 6b 47 6f 54 6f 42 | 65 67 69 6e 6e 69 6e 67 |, kGoToB|eginning|
|000002b0| 42 75 74 74 6f 6e 44 6f | 77 6e 49 6e 64 65 78 2c |ButtonDo|wnIndex,|
|000002c0| 20 4e 55 4c 4c 29 3b 0d | 09 41 64 64 53 70 72 69 | NULL);.|.AddSpri|
|000002d0| 74 65 53 65 74 49 6d 61 | 67 65 49 6e 64 65 78 41 |teSetIma|geIndexA|
|000002e0| 63 74 69 6f 6e 28 6d 79 | 42 65 67 69 6e 41 63 74 |ction(my|BeginAct|
|000002f0| 69 6f 6e 42 75 74 74 6f | 6e 2c 20 6b 50 61 72 65 |ionButto|n, kPare|
|00000300| 6e 74 41 74 6f 6d 49 73 | 43 6f 6e 74 61 69 6e 65 |ntAtomIs|Containe|
|00000310| 72 2c 20 6b 51 54 45 76 | 65 6e 74 4d 6f 75 73 65 |r, kQTEv|entMouse|
|00000320| 43 6c 69 63 6b 45 6e 64 | 2c 20 30 2c 20 4e 55 4c |ClickEnd|, 0, NUL|
|00000330| 4c 2c 20 30 2c 20 30 2c | 20 4e 55 4c 4c 2c 20 6b |L, 0, 0,| NULL, k|
|00000340| 47 6f 54 6f 42 65 67 69 | 6e 6e 69 6e 67 42 75 74 |GoToBegi|nningBut|
|00000350| 74 6f 6e 55 70 49 6e 64 | 65 78 2c 20 4e 55 4c 4c |tonUpInd|ex, NULL|
|00000360| 29 3b 0d 09 41 64 64 4d | 6f 76 69 65 47 6f 54 6f |);..AddM|ovieGoTo|
|00000370| 42 65 67 69 6e 6e 69 6e | 67 41 63 74 69 6f 6e 28 |Beginnin|gAction(|
|00000380| 6d 79 42 65 67 69 6e 41 | 63 74 69 6f 6e 42 75 74 |myBeginA|ctionBut|
|00000390| 74 6f 6e 2c 20 6b 50 61 | 72 65 6e 74 41 74 6f 6d |ton, kPa|rentAtom|
|000003a0| 49 73 43 6f 6e 74 61 69 | 6e 65 72 2c 20 6b 51 54 |IsContai|ner, kQT|
|000003b0| 45 76 65 6e 74 4d 6f 75 | 73 65 43 6c 69 63 6b 45 |EventMou|seClickE|
|000003c0| 6e 64 54 72 69 67 67 65 | 72 42 75 74 74 6f 6e 29 |ndTrigge|rButton)|
|000003d0| 3b 0d 09 41 64 64 53 70 | 72 69 74 65 53 65 74 56 |;..AddSp|riteSetV|
|000003e0| 69 73 69 62 6c 65 41 63 | 74 69 6f 6e 28 6d 79 42 |isibleAc|tion(myB|
|000003f0| 65 67 69 6e 41 63 74 69 | 6f 6e 42 75 74 74 6f 6e |eginActi|onButton|
|00000400| 2c 20 6b 50 61 72 65 6e | 74 41 74 6f 6d 49 73 43 |, kParen|tAtomIsC|
|00000410| 6f 6e 74 61 69 6e 65 72 | 2c 20 6b 51 54 45 76 65 |ontainer|, kQTEve|
|00000420| 6e 74 4d 6f 75 73 65 45 | 6e 74 65 72 2c 20 30 2c |ntMouseE|nter, 0,|
|00000430| 20 4e 55 4c 4c 2c 20 30 | 2c 20 30 2c 20 4e 55 4c | NULL, 0|, 0, NUL|
|00000440| 4c 2c 20 74 72 75 65 2c | 20 4e 55 4c 4c 29 3b 0d |L, true,| NULL);.|
|00000450| 09 41 64 64 53 70 72 69 | 74 65 53 65 74 56 69 73 |.AddSpri|teSetVis|
|00000460| 69 62 6c 65 41 63 74 69 | 6f 6e 28 6d 79 42 65 67 |ibleActi|on(myBeg|
|00000470| 69 6e 41 63 74 69 6f 6e | 42 75 74 74 6f 6e 2c 20 |inAction|Button, |
|00000480| 6b 50 61 72 65 6e 74 41 | 74 6f 6d 49 73 43 6f 6e |kParentA|tomIsCon|
|00000490| 74 61 69 6e 65 72 2c 20 | 6b 51 54 45 76 65 6e 74 |tainer, |kQTEvent|
|000004a0| 4d 6f 75 73 65 45 78 69 | 74 2c 20 30 2c 20 4e 55 |MouseExi|t, 0, NU|
|000004b0| 4c 4c 2c 20 30 2c 20 30 | 2c 20 4e 55 4c 4c 2c 20 |LL, 0, 0|, NULL, |
|000004c0| 66 61 6c 73 65 2c 20 4e | 55 4c 4c 29 3b 0d 09 41 |false, N|ULL);..A|
|000004d0| 64 64 53 70 72 69 74 65 | 54 6f 53 61 6d 70 6c 65 |ddSprite|ToSample|
|000004e0| 28 6d 79 53 61 6d 70 6c | 65 2c 20 6d 79 42 65 67 |(mySampl|e, myBeg|
|000004f0| 69 6e 41 63 74 69 6f 6e | 42 75 74 74 6f 6e 2c 20 |inAction|Button, |
|00000500| 6b 47 6f 54 6f 42 65 67 | 69 6e 6e 69 6e 67 53 70 |kGoToBeg|inningSp|
|00000510| 72 69 74 65 49 44 29 3b | 09 0d 09 51 54 44 69 73 |riteID);|...QTDis|
|00000520| 70 6f 73 65 41 74 6f 6d | 43 6f 6e 74 61 69 6e 65 |poseAtom|Containe|
|00000530| 72 28 6d 79 42 65 67 69 | 6e 41 63 74 69 6f 6e 42 |r(myBegi|nActionB|
|00000540| 75 74 74 6f 6e 29 3b 0d | 0d 09 2f 2f 20 61 64 64 |utton);.|..// add|
|00000550| 20 67 6f 20 74 6f 20 70 | 72 65 76 20 62 75 74 74 | go to p|rev butt|
|00000560| 6f 6e 0d 09 6d 79 45 72 | 72 20 3d 20 51 54 43 6f |on..myEr|r = QTCo|
|00000570| 70 79 41 74 6f 6d 28 6d | 79 50 72 65 76 42 75 74 |pyAtom(m|yPrevBut|
|00000580| 74 6f 6e 2c 20 6b 50 61 | 72 65 6e 74 41 74 6f 6d |ton, kPa|rentAtom|
|00000590| 49 73 43 6f 6e 74 61 69 | 6e 65 72 2c 20 26 6d 79 |IsContai|ner, &my|
|000005a0| 50 72 65 76 41 63 74 69 | 6f 6e 42 75 74 74 6f 6e |PrevActi|onButton|
|000005b0| 29 3b 0d 09 69 66 20 28 | 6d 79 45 72 72 20 21 3d |);..if (|myErr !=|
|000005c0| 20 6e 6f 45 72 72 29 0d | 09 09 67 6f 74 6f 20 62 | noErr).|..goto b|
|000005d0| 61 69 6c 3b 0d 0d 09 41 | 64 64 53 70 72 69 74 65 |ail;...A|ddSprite|
|000005e0| 53 65 74 49 6d 61 67 65 | 49 6e 64 65 78 41 63 74 |SetImage|IndexAct|
|000005f0| 69 6f 6e 28 6d 79 50 72 | 65 76 41 63 74 69 6f 6e |ion(myPr|evAction|
|00000600| 42 75 74 74 6f 6e 2c 20 | 6b 50 61 72 65 6e 74 41 |Button, |kParentA|
|00000610| 74 6f 6d 49 73 43 6f 6e | 74 61 69 6e 65 72 2c 20 |tomIsCon|tainer, |
|00000620| 6b 51 54 45 76 65 6e 74 | 4d 6f 75 73 65 43 6c 69 |kQTEvent|MouseCli|
|00000630| 63 6b 2c 20 30 2c 20 4e | 55 4c 4c 2c 20 30 2c 20 |ck, 0, N|ULL, 0, |
|00000640| 30 2c 20 4e 55 4c 4c 2c | 20 6b 47 6f 54 6f 50 72 |0, NULL,| kGoToPr|
|00000650| 65 76 42 75 74 74 6f 6e | 44 6f 77 6e 49 6e 64 65 |evButton|DownInde|
|00000660| 78 2c 20 4e 55 4c 4c 29 | 3b 0d 09 41 64 64 53 70 |x, NULL)|;..AddSp|
|00000670| 72 69 74 65 53 65 74 49 | 6d 61 67 65 49 6e 64 65 |riteSetI|mageInde|
|00000680| 78 41 63 74 69 6f 6e 28 | 6d 79 50 72 65 76 41 63 |xAction(|myPrevAc|
|00000690| 74 69 6f 6e 42 75 74 74 | 6f 6e 2c 20 6b 50 61 72 |tionButt|on, kPar|
|000006a0| 65 6e 74 41 74 6f 6d 49 | 73 43 6f 6e 74 61 69 6e |entAtomI|sContain|
|000006b0| 65 72 2c 20 6b 51 54 45 | 76 65 6e 74 4d 6f 75 73 |er, kQTE|ventMous|
|000006c0| 65 43 6c 69 63 6b 45 6e | 64 2c 20 30 2c 20 4e 55 |eClickEn|d, 0, NU|
|000006d0| 4c 4c 2c 20 30 2c 20 30 | 2c 20 4e 55 4c 4c 2c 20 |LL, 0, 0|, NULL, |
|000006e0| 6b 47 6f 54 6f 50 72 65 | 76 42 75 74 74 6f 6e 55 |kGoToPre|vButtonU|
|000006f0| 70 49 6e 64 65 78 2c 20 | 4e 55 4c 4c 29 3b 0d 09 |pIndex, |NULL);..|
|00000700| 41 64 64 4d 6f 76 69 65 | 53 74 65 70 42 61 63 6b |AddMovie|StepBack|
|00000710| 77 61 72 64 41 63 74 69 | 6f 6e 28 6d 79 50 72 65 |wardActi|on(myPre|
|00000720| 76 41 63 74 69 6f 6e 42 | 75 74 74 6f 6e 2c 20 6b |vActionB|utton, k|
|00000730| 50 61 72 65 6e 74 41 74 | 6f 6d 49 73 43 6f 6e 74 |ParentAt|omIsCont|
|00000740| 61 69 6e 65 72 2c 20 6b | 51 54 45 76 65 6e 74 4d |ainer, k|QTEventM|
|00000750| 6f 75 73 65 43 6c 69 63 | 6b 45 6e 64 54 72 69 67 |ouseClic|kEndTrig|
|00000760| 67 65 72 42 75 74 74 6f | 6e 29 3b 0d 09 41 64 64 |gerButto|n);..Add|
|00000770| 53 70 72 69 74 65 53 65 | 74 56 69 73 69 62 6c 65 |SpriteSe|tVisible|
|00000780| 41 63 74 69 6f 6e 28 6d | 79 42 65 67 69 6e 41 63 |Action(m|yBeginAc|
|00000790| 74 69 6f 6e 42 75 74 74 | 6f 6e 2c 20 6b 50 61 72 |tionButt|on, kPar|
|000007a0| 65 6e 74 41 74 6f 6d 49 | 73 43 6f 6e 74 61 69 6e |entAtomI|sContain|
|000007b0| 65 72 2c 20 6b 51 54 45 | 76 65 6e 74 4d 6f 75 73 |er, kQTE|ventMous|
|000007c0| 65 45 6e 74 65 72 2c 20 | 30 2c 20 4e 55 4c 4c 2c |eEnter, |0, NULL,|
|000007d0| 20 30 2c 20 30 2c 20 4e | 55 4c 4c 2c 20 74 72 75 | 0, 0, N|ULL, tru|
|000007e0| 65 2c 20 4e 55 4c 4c 29 | 3b 0d 09 41 64 64 53 70 |e, NULL)|;..AddSp|
|000007f0| 72 69 74 65 53 65 74 56 | 69 73 69 62 6c 65 41 63 |riteSetV|isibleAc|
|00000800| 74 69 6f 6e 28 6d 79 42 | 65 67 69 6e 41 63 74 69 |tion(myB|eginActi|
|00000810| 6f 6e 42 75 74 74 6f 6e | 2c 20 6b 50 61 72 65 6e |onButton|, kParen|
|00000820| 74 41 74 6f 6d 49 73 43 | 6f 6e 74 61 69 6e 65 72 |tAtomIsC|ontainer|
|00000830| 2c 20 6b 51 54 45 76 65 | 6e 74 4d 6f 75 73 65 45 |, kQTEve|ntMouseE|
|00000840| 78 69 74 2c 20 30 2c 20 | 4e 55 4c 4c 2c 20 30 2c |xit, 0, |NULL, 0,|
|00000850| 20 30 2c 20 4e 55 4c 4c | 2c 20 66 61 6c 73 65 2c | 0, NULL|, false,|
|00000860| 20 4e 55 4c 4c 29 3b 0d | 09 41 64 64 53 70 72 69 | NULL);.|.AddSpri|
|00000870| 74 65 54 6f 53 61 6d 70 | 6c 65 28 6d 79 53 61 6d |teToSamp|le(mySam|
|00000880| 70 6c 65 2c 20 6d 79 50 | 72 65 76 41 63 74 69 6f |ple, myP|revActio|
|00000890| 6e 42 75 74 74 6f 6e 2c | 20 6b 47 6f 54 6f 50 72 |nButton,| kGoToPr|
|000008a0| 65 76 53 70 72 69 74 65 | 49 44 29 3b 0d 09 51 54 |evSprite|ID);..QT|
|000008b0| 44 69 73 70 6f 73 65 41 | 74 6f 6d 43 6f 6e 74 61 |DisposeA|tomConta|
|000008c0| 69 6e 65 72 28 6d 79 50 | 72 65 76 41 63 74 69 6f |iner(myP|revActio|
|000008d0| 6e 42 75 74 74 6f 6e 29 | 3b 0d 0d 09 2f 2f 20 61 |nButton)|;...// a|
|000008e0| 64 64 20 67 6f 20 74 6f | 20 6e 65 78 74 20 62 75 |dd go to| next bu|
|000008f0| 74 74 6f 6e 0d 09 6d 79 | 45 72 72 20 3d 20 51 54 |tton..my|Err = QT|
|00000900| 43 6f 70 79 41 74 6f 6d | 28 6d 79 4e 65 78 74 42 |CopyAtom|(myNextB|
|00000910| 75 74 74 6f 6e 2c 20 6b | 50 61 72 65 6e 74 41 74 |utton, k|ParentAt|
|00000920| 6f 6d 49 73 43 6f 6e 74 | 61 69 6e 65 72 2c 20 26 |omIsCont|ainer, &|
|00000930| 6d 79 4e 65 78 74 41 63 | 74 69 6f 6e 42 75 74 74 |myNextAc|tionButt|
|00000940| 6f 6e 29 3b 0d 09 69 66 | 20 28 6d 79 45 72 72 20 |on);..if| (myErr |
|00000950| 21 3d 20 6e 6f 45 72 72 | 29 0d 09 09 67 6f 74 6f |!= noErr|)...goto|
|00000960| 20 62 61 69 6c 3b 0d 0d | 09 41 64 64 53 70 72 69 | bail;..|.AddSpri|
|00000970| 74 65 53 65 74 49 6d 61 | 67 65 49 6e 64 65 78 41 |teSetIma|geIndexA|
|00000980| 63 74 69 6f 6e 28 6d 79 | 4e 65 78 74 41 63 74 69 |ction(my|NextActi|
|00000990| 6f 6e 42 75 74 74 6f 6e | 2c 20 6b 50 61 72 65 6e |onButton|, kParen|
|000009a0| 74 41 74 6f 6d 49 73 43 | 6f 6e 74 61 69 6e 65 72 |tAtomIsC|ontainer|
|000009b0| 2c 20 6b 51 54 45 76 65 | 6e 74 4d 6f 75 73 65 43 |, kQTEve|ntMouseC|
|000009c0| 6c 69 63 6b 2c 20 30 2c | 20 4e 55 4c 4c 2c 20 30 |lick, 0,| NULL, 0|
|000009d0| 2c 20 30 2c 20 4e 55 4c | 4c 2c 20 6b 47 6f 54 6f |, 0, NUL|L, kGoTo|
|000009e0| 4e 65 78 74 42 75 74 74 | 6f 6e 44 6f 77 6e 49 6e |NextButt|onDownIn|
|000009f0| 64 65 78 2c 20 4e 55 4c | 4c 29 3b 0d 09 41 64 64 |dex, NUL|L);..Add|
|00000a00| 53 70 72 69 74 65 53 65 | 74 49 6d 61 67 65 49 6e |SpriteSe|tImageIn|
|00000a10| 64 65 78 41 63 74 69 6f | 6e 28 6d 79 4e 65 78 74 |dexActio|n(myNext|
|00000a20| 41 63 74 69 6f 6e 42 75 | 74 74 6f 6e 2c 20 6b 50 |ActionBu|tton, kP|
|00000a30| 61 72 65 6e 74 41 74 6f | 6d 49 73 43 6f 6e 74 61 |arentAto|mIsConta|
|00000a40| 69 6e 65 72 2c 20 6b 51 | 54 45 76 65 6e 74 4d 6f |iner, kQ|TEventMo|
|00000a50| 75 73 65 43 6c 69 63 6b | 45 6e 64 2c 20 30 2c 20 |useClick|End, 0, |
|00000a60| 4e 55 4c 4c 2c 20 30 2c | 20 30 2c 20 4e 55 4c 4c |NULL, 0,| 0, NULL|
|00000a70| 2c 20 6b 47 6f 54 6f 4e | 65 78 74 42 75 74 74 6f |, kGoToN|extButto|
|00000a80| 6e 55 70 49 6e 64 65 78 | 2c 20 4e 55 4c 4c 29 3b |nUpIndex|, NULL);|
|00000a90| 0d 09 41 64 64 4d 6f 76 | 69 65 53 74 65 70 46 6f |..AddMov|ieStepFo|
|00000aa0| 72 77 61 72 64 41 63 74 | 69 6f 6e 28 6d 79 4e 65 |rwardAct|ion(myNe|
|00000ab0| 78 74 41 63 74 69 6f 6e | 42 75 74 74 6f 6e 2c 20 |xtAction|Button, |
|00000ac0| 6b 50 61 72 65 6e 74 41 | 74 6f 6d 49 73 43 6f 6e |kParentA|tomIsCon|
|00000ad0| 74 61 69 6e 65 72 2c 20 | 6b 51 54 45 76 65 6e 74 |tainer, |kQTEvent|
|00000ae0| 4d 6f 75 73 65 43 6c 69 | 63 6b 45 6e 64 54 72 69 |MouseCli|ckEndTri|
|00000af0| 67 67 65 72 42 75 74 74 | 6f 6e 29 3b 0d 09 41 64 |ggerButt|on);..Ad|
|00000b00| 64 53 70 72 69 74 65 53 | 65 74 56 69 73 69 62 6c |dSpriteS|etVisibl|
|00000b10| 65 41 63 74 69 6f 6e 28 | 6d 79 42 65 67 69 6e 41 |eAction(|myBeginA|
|00000b20| 63 74 69 6f 6e 42 75 74 | 74 6f 6e 2c 20 6b 50 61 |ctionBut|ton, kPa|
|00000b30| 72 65 6e 74 41 74 6f 6d | 49 73 43 6f 6e 74 61 69 |rentAtom|IsContai|
|00000b40| 6e 65 72 2c 20 6b 51 54 | 45 76 65 6e 74 4d 6f 75 |ner, kQT|EventMou|
|00000b50| 73 65 45 6e 74 65 72 2c | 20 30 2c 20 4e 55 4c 4c |seEnter,| 0, NULL|
|00000b60| 2c 20 30 2c 20 30 2c 20 | 4e 55 4c 4c 2c 20 74 72 |, 0, 0, |NULL, tr|
|00000b70| 75 65 2c 20 4e 55 4c 4c | 29 3b 0d 09 41 64 64 53 |ue, NULL|);..AddS|
|00000b80| 70 72 69 74 65 53 65 74 | 56 69 73 69 62 6c 65 41 |priteSet|VisibleA|
|00000b90| 63 74 69 6f 6e 28 6d 79 | 42 65 67 69 6e 41 63 74 |ction(my|BeginAct|
|00000ba0| 69 6f 6e 42 75 74 74 6f | 6e 2c 20 6b 50 61 72 65 |ionButto|n, kPare|
|00000bb0| 6e 74 41 74 6f 6d 49 73 | 43 6f 6e 74 61 69 6e 65 |ntAtomIs|Containe|
|00000bc0| 72 2c 20 6b 51 54 45 76 | 65 6e 74 4d 6f 75 73 65 |r, kQTEv|entMouse|
|00000bd0| 45 78 69 74 2c 20 30 2c | 20 4e 55 4c 4c 2c 20 30 |Exit, 0,| NULL, 0|
|00000be0| 2c 20 30 2c 20 4e 55 4c | 4c 2c 20 66 61 6c 73 65 |, 0, NUL|L, false|
|00000bf0| 2c 20 4e 55 4c 4c 29 3b | 0d 09 41 64 64 53 70 72 |, NULL);|..AddSpr|
|00000c00| 69 74 65 54 6f 53 61 6d | 70 6c 65 28 6d 79 53 61 |iteToSam|ple(mySa|
|00000c10| 6d 70 6c 65 2c 20 6d 79 | 4e 65 78 74 41 63 74 69 |mple, my|NextActi|
|00000c20| 6f 6e 42 75 74 74 6f 6e | 2c 20 6b 47 6f 54 6f 4e |onButton|, kGoToN|
|00000c30| 65 78 74 53 70 72 69 74 | 65 49 44 29 3b 0d 09 51 |extSprit|eID);..Q|
|00000c40| 54 44 69 73 70 6f 73 65 | 41 74 6f 6d 43 6f 6e 74 |TDispose|AtomCont|
|00000c50| 61 69 6e 65 72 28 6d 79 | 4e 65 78 74 41 63 74 69 |ainer(my|NextActi|
|00000c60| 6f 6e 42 75 74 74 6f 6e | 29 3b 0d 0d 09 2f 2f 20 |onButton|);...// |
|00000c70| 61 64 64 20 67 6f 20 74 | 6f 20 65 6e 64 20 62 75 |add go t|o end bu|
|00000c80| 74 74 6f 6e 0d 09 6d 79 | 45 72 72 20 3d 20 51 54 |tton..my|Err = QT|
|00000c90| 43 6f 70 79 41 74 6f 6d | 28 6d 79 45 6e 64 42 75 |CopyAtom|(myEndBu|
|00000ca0| 74 74 6f 6e 2c 20 6b 50 | 61 72 65 6e 74 41 74 6f |tton, kP|arentAto|
|00000cb0| 6d 49 73 43 6f 6e 74 61 | 69 6e 65 72 2c 20 26 6d |mIsConta|iner, &m|
|00000cc0| 79 45 6e 64 41 63 74 69 | 6f 6e 42 75 74 74 6f 6e |yEndActi|onButton|
|00000cd0| 29 3b 0d 09 69 66 20 28 | 6d 79 45 72 72 20 21 3d |);..if (|myErr !=|
|00000ce0| 20 6e 6f 45 72 72 29 0d | 09 09 67 6f 74 6f 20 62 | noErr).|..goto b|
|00000cf0| 61 69 6c 3b 0d 0d 09 41 | 64 64 53 70 72 69 74 65 |ail;...A|ddSprite|
|00000d00| 53 65 74 49 6d 61 67 65 | 49 6e 64 65 78 41 63 74 |SetImage|IndexAct|
|00000d10| 69 6f 6e 28 6d 79 45 6e | 64 41 63 74 69 6f 6e 42 |ion(myEn|dActionB|
|00000d20| 75 74 74 6f 6e 2c 20 6b | 50 61 72 65 6e 74 41 74 |utton, k|ParentAt|
|00000d30| 6f 6d 49 73 43 6f 6e 74 | 61 69 6e 65 72 2c 20 6b |omIsCont|ainer, k|
|00000d40| 51 54 45 76 65 6e 74 4d | 6f 75 73 65 43 6c 69 63 |QTEventM|ouseClic|
|00000d50| 6b 2c 20 30 2c 20 4e 55 | 4c 4c 2c 20 30 2c 20 30 |k, 0, NU|LL, 0, 0|
|00000d60| 2c 20 4e 55 4c 4c 2c 20 | 6b 47 6f 54 6f 45 6e 64 |, NULL, |kGoToEnd|
|00000d70| 42 75 74 74 6f 6e 44 6f | 77 6e 49 6e 64 65 78 2c |ButtonDo|wnIndex,|
|00000d80| 20 4e 55 4c 4c 29 3b 0d | 09 41 64 64 53 70 72 69 | NULL);.|.AddSpri|
|00000d90| 74 65 53 65 74 49 6d 61 | 67 65 49 6e 64 65 78 41 |teSetIma|geIndexA|
|00000da0| 63 74 69 6f 6e 28 6d 79 | 45 6e 64 41 63 74 69 6f |ction(my|EndActio|
|00000db0| 6e 42 75 74 74 6f 6e 2c | 20 6b 50 61 72 65 6e 74 |nButton,| kParent|
|00000dc0| 41 74 6f 6d 49 73 43 6f | 6e 74 61 69 6e 65 72 2c |AtomIsCo|ntainer,|
|00000dd0| 20 6b 51 54 45 76 65 6e | 74 4d 6f 75 73 65 43 6c | kQTEven|tMouseCl|
|00000de0| 69 63 6b 45 6e 64 2c 20 | 30 2c 20 4e 55 4c 4c 2c |ickEnd, |0, NULL,|
|00000df0| 20 30 2c 20 30 2c 20 4e | 55 4c 4c 2c 20 6b 47 6f | 0, 0, N|ULL, kGo|
|00000e00| 54 6f 45 6e 64 42 75 74 | 74 6f 6e 55 70 49 6e 64 |ToEndBut|tonUpInd|
|00000e10| 65 78 2c 20 4e 55 4c 4c | 29 3b 0d 09 41 64 64 4d |ex, NULL|);..AddM|
|00000e20| 6f 76 69 65 47 6f 54 6f | 45 6e 64 41 63 74 69 6f |ovieGoTo|EndActio|
|00000e30| 6e 28 6d 79 45 6e 64 41 | 63 74 69 6f 6e 42 75 74 |n(myEndA|ctionBut|
|00000e40| 74 6f 6e 2c 20 6b 50 61 | 72 65 6e 74 41 74 6f 6d |ton, kPa|rentAtom|
|00000e50| 49 73 43 6f 6e 74 61 69 | 6e 65 72 2c 20 6b 51 54 |IsContai|ner, kQT|
|00000e60| 45 76 65 6e 74 4d 6f 75 | 73 65 43 6c 69 63 6b 45 |EventMou|seClickE|
|00000e70| 6e 64 54 72 69 67 67 65 | 72 42 75 74 74 6f 6e 29 |ndTrigge|rButton)|
|00000e80| 3b 0d 09 41 64 64 53 70 | 72 69 74 65 53 65 74 56 |;..AddSp|riteSetV|
|00000e90| 69 73 69 62 6c 65 41 63 | 74 69 6f 6e 28 6d 79 42 |isibleAc|tion(myB|
|00000ea0| 65 67 69 6e 41 63 74 69 | 6f 6e 42 75 74 74 6f 6e |eginActi|onButton|
|00000eb0| 2c 20 6b 50 61 72 65 6e | 74 41 74 6f 6d 49 73 43 |, kParen|tAtomIsC|
|00000ec0| 6f 6e 74 61 69 6e 65 72 | 2c 20 6b 51 54 45 76 65 |ontainer|, kQTEve|
|00000ed0| 6e 74 4d 6f 75 73 65 45 | 6e 74 65 72 2c 20 30 2c |ntMouseE|nter, 0,|
|00000ee0| 20 4e 55 4c 4c 2c 20 30 | 2c 20 30 2c 20 4e 55 4c | NULL, 0|, 0, NUL|
|00000ef0| 4c 2c 20 74 72 75 65 2c | 20 4e 55 4c 4c 29 3b 0d |L, true,| NULL);.|
|00000f00| 09 41 64 64 53 70 72 69 | 74 65 53 65 74 56 69 73 |.AddSpri|teSetVis|
|00000f10| 69 62 6c 65 41 63 74 69 | 6f 6e 28 6d 79 42 65 67 |ibleActi|on(myBeg|
|00000f20| 69 6e 41 63 74 69 6f 6e | 42 75 74 74 6f 6e 2c 20 |inAction|Button, |
|00000f30| 6b 50 61 72 65 6e 74 41 | 74 6f 6d 49 73 43 6f 6e |kParentA|tomIsCon|
|00000f40| 74 61 69 6e 65 72 2c 20 | 6b 51 54 45 76 65 6e 74 |tainer, |kQTEvent|
|00000f50| 4d 6f 75 73 65 45 78 69 | 74 2c 20 30 2c 20 4e 55 |MouseExi|t, 0, NU|
|00000f60| 4c 4c 2c 20 30 2c 20 30 | 2c 20 4e 55 4c 4c 2c 20 |LL, 0, 0|, NULL, |
|00000f70| 66 61 6c 73 65 2c 20 4e | 55 4c 4c 29 3b 0d 09 41 |false, N|ULL);..A|
|00000f80| 64 64 53 70 72 69 74 65 | 54 6f 53 61 6d 70 6c 65 |ddSprite|ToSample|
|00000f90| 28 6d 79 53 61 6d 70 6c | 65 2c 20 6d 79 45 6e 64 |(mySampl|e, myEnd|
|00000fa0| 41 63 74 69 6f 6e 42 75 | 74 74 6f 6e 2c 20 6b 47 |ActionBu|tton, kG|
|00000fb0| 6f 54 6f 45 6e 64 53 70 | 72 69 74 65 49 44 29 3b |oToEndSp|riteID);|
|00000fc0| 0d 09 51 54 44 69 73 70 | 6f 73 65 41 74 6f 6d 43 |..QTDisp|oseAtomC|
|00000fd0| 6f 6e 74 61 69 6e 65 72 | 28 6d 79 45 6e 64 41 63 |ontainer|(myEndAc|
|00000fe0| 74 69 6f 6e 42 75 74 74 | 6f 6e 29 3b 0d 0d 09 2f |tionButt|on);.../|
|00000ff0| 2f 20 61 64 64 20 70 65 | 6e 67 75 69 6e 20 6f 6e |/ add pe|nguin on|
|00001000| 65 0d 09 6d 79 45 72 72 | 20 3d 20 51 54 43 6f 70 |e..myErr| = QTCop|
|00001010| 79 41 74 6f 6d 28 6d 79 | 50 65 6e 67 75 69 6e 4f |yAtom(my|PenguinO|
|00001020| 6e 65 2c 20 6b 50 61 72 | 65 6e 74 41 74 6f 6d 49 |ne, kPar|entAtomI|
|00001030| 73 43 6f 6e 74 61 69 6e | 65 72 2c 20 26 6d 79 50 |sContain|er, &myP|
|00001040| 65 6e 67 75 69 6e 4f 6e | 65 41 63 74 69 6f 6e 29 |enguinOn|eAction)|
|00001050| 3b 0d 09 69 66 20 28 6d | 79 45 72 72 20 21 3d 20 |;..if (m|yErr != |
|00001060| 6e 6f 45 72 72 29 0d 09 | 09 67 6f 74 6f 20 62 61 |noErr)..|.goto ba|
|00001070| 69 6c 3b 0d 0d 09 2f 2f | 20 73 68 6f 77 20 74 68 |il;...//| show th|
|00001080| 65 20 62 75 74 74 6f 6e | 73 20 6f 6e 20 6d 6f 75 |e button|s on mou|
|00001090| 73 65 20 65 6e 74 65 72 | 20 61 6e 64 20 68 69 64 |se enter| and hid|
|000010a0| 65 20 74 68 65 6d 20 6f | 6e 20 6d 6f 75 73 65 20 |e them o|n mouse |
|000010b0| 65 78 69 74 0d 09 41 64 | 64 53 70 72 69 74 65 53 |exit..Ad|dSpriteS|
|000010c0| 65 74 56 69 73 69 62 6c | 65 41 63 74 69 6f 6e 28 |etVisibl|eAction(|
|000010d0| 6d 79 50 65 6e 67 75 69 | 6e 4f 6e 65 41 63 74 69 |myPengui|nOneActi|
|000010e0| 6f 6e 2c 20 6b 50 61 72 | 65 6e 74 41 74 6f 6d 49 |on, kPar|entAtomI|
|000010f0| 73 43 6f 6e 74 61 69 6e | 65 72 2c 20 6b 51 54 45 |sContain|er, kQTE|
|00001100| 76 65 6e 74 4d 6f 75 73 | 65 45 6e 74 65 72 2c 20 |ventMous|eEnter, |
|00001110| 30 2c 20 4e 55 4c 4c 2c | 20 30 2c 20 6b 54 61 72 |0, NULL,| 0, kTar|
|00001120| 67 65 74 53 70 72 69 74 | 65 49 44 2c 20 28 76 6f |getSprit|eID, (vo|
|00001130| 69 64 20 2a 29 6b 47 6f | 54 6f 42 65 67 69 6e 6e |id *)kGo|ToBeginn|
|00001140| 69 6e 67 53 70 72 69 74 | 65 49 44 2c 20 74 72 75 |ingSprit|eID, tru|
|00001150| 65 2c 20 4e 55 4c 4c 29 | 3b 0d 09 41 64 64 53 70 |e, NULL)|;..AddSp|
|00001160| 72 69 74 65 53 65 74 56 | 69 73 69 62 6c 65 41 63 |riteSetV|isibleAc|
|00001170| 74 69 6f 6e 28 6d 79 50 | 65 6e 67 75 69 6e 4f 6e |tion(myP|enguinOn|
|00001180| 65 41 63 74 69 6f 6e 2c | 20 6b 50 61 72 65 6e 74 |eAction,| kParent|
|00001190| 41 74 6f 6d 49 73 43 6f | 6e 74 61 69 6e 65 72 2c |AtomIsCo|ntainer,|
|000011a0| 20 6b 51 54 45 76 65 6e | 74 4d 6f 75 73 65 45 78 | kQTEven|tMouseEx|
|000011b0| 69 74 2c 20 30 2c 20 4e | 55 4c 4c 2c 20 30 2c 20 |it, 0, N|ULL, 0, |
|000011c0| 6b 54 61 72 67 65 74 53 | 70 72 69 74 65 49 44 2c |kTargetS|priteID,|
|000011d0| 20 28 76 6f 69 64 20 2a | 29 6b 47 6f 54 6f 42 65 | (void *|)kGoToBe|
|000011e0| 67 69 6e 6e 69 6e 67 53 | 70 72 69 74 65 49 44 2c |ginningS|priteID,|
|000011f0| 20 66 61 6c 73 65 2c 20 | 4e 55 4c 4c 29 3b 0d 09 | false, |NULL);..|
|00001200| 41 64 64 53 70 72 69 74 | 65 53 65 74 56 69 73 69 |AddSprit|eSetVisi|
|00001210| 62 6c 65 41 63 74 69 6f | 6e 28 6d 79 50 65 6e 67 |bleActio|n(myPeng|
|00001220| 75 69 6e 4f 6e 65 41 63 | 74 69 6f 6e 2c 20 6b 50 |uinOneAc|tion, kP|
|00001230| 61 72 65 6e 74 41 74 6f | 6d 49 73 43 6f 6e 74 61 |arentAto|mIsConta|
|00001240| 69 6e 65 72 2c 20 6b 51 | 54 45 76 65 6e 74 4d 6f |iner, kQ|TEventMo|
|00001250| 75 73 65 45 6e 74 65 72 | 2c 20 30 2c 20 4e 55 4c |useEnter|, 0, NUL|
|00001260| 4c 2c 20 30 2c 20 6b 54 | 61 72 67 65 74 53 70 72 |L, 0, kT|argetSpr|
|00001270| 69 74 65 49 44 2c 20 28 | 76 6f 69 64 20 2a 29 6b |iteID, (|void *)k|
|00001280| 47 6f 54 6f 50 72 65 76 | 53 70 72 69 74 65 49 44 |GoToPrev|SpriteID|
|00001290| 2c 20 74 72 75 65 2c 20 | 4e 55 4c 4c 29 3b 0d 09 |, true, |NULL);..|
|000012a0| 41 64 64 53 70 72 69 74 | 65 53 65 74 56 69 73 69 |AddSprit|eSetVisi|
|000012b0| 62 6c 65 41 63 74 69 6f | 6e 28 6d 79 50 65 6e 67 |bleActio|n(myPeng|
|000012c0| 75 69 6e 4f 6e 65 41 63 | 74 69 6f 6e 2c 20 6b 50 |uinOneAc|tion, kP|
|000012d0| 61 72 65 6e 74 41 74 6f | 6d 49 73 43 6f 6e 74 61 |arentAto|mIsConta|
|000012e0| 69 6e 65 72 2c 20 6b 51 | 54 45 76 65 6e 74 4d 6f |iner, kQ|TEventMo|
|000012f0| 75 73 65 45 78 69 74 2c | 20 30 2c 20 4e 55 4c 4c |useExit,| 0, NULL|
|00001300| 2c 20 30 2c 20 6b 54 61 | 72 67 65 74 53 70 72 69 |, 0, kTa|rgetSpri|
|00001310| 74 65 49 44 2c 20 28 76 | 6f 69 64 20 2a 29 6b 47 |teID, (v|oid *)kG|
|00001320| 6f 54 6f 50 72 65 76 53 | 70 72 69 74 65 49 44 2c |oToPrevS|priteID,|
|00001330| 20 66 61 6c 73 65 2c 20 | 4e 55 4c 4c 29 3b 0d 09 | false, |NULL);..|
|00001340| 41 64 64 53 70 72 69 74 | 65 53 65 74 56 69 73 69 |AddSprit|eSetVisi|
|00001350| 62 6c 65 41 63 74 69 6f | 6e 28 6d 79 50 65 6e 67 |bleActio|n(myPeng|
|00001360| 75 69 6e 4f 6e 65 41 63 | 74 69 6f 6e 2c 20 6b 50 |uinOneAc|tion, kP|
|00001370| 61 72 65 6e 74 41 74 6f | 6d 49 73 43 6f 6e 74 61 |arentAto|mIsConta|
|00001380| 69 6e 65 72 2c 20 6b 51 | 54 45 76 65 6e 74 4d 6f |iner, kQ|TEventMo|
|00001390| 75 73 65 45 6e 74 65 72 | 2c 20 30 2c 20 4e 55 4c |useEnter|, 0, NUL|
|000013a0| 4c 2c 20 30 2c 20 6b 54 | 61 72 67 65 74 53 70 72 |L, 0, kT|argetSpr|
|000013b0| 69 74 65 49 44 2c 20 28 | 76 6f 69 64 20 2a 29 6b |iteID, (|void *)k|
|000013c0| 47 6f 54 6f 4e 65 78 74 | 53 70 72 69 74 65 49 44 |GoToNext|SpriteID|
|000013d0| 2c 20 74 72 75 65 2c 20 | 4e 55 4c 4c 29 3b 0d 09 |, true, |NULL);..|
|000013e0| 41 64 64 53 70 72 69 74 | 65 53 65 74 56 69 73 69 |AddSprit|eSetVisi|
|000013f0| 62 6c 65 41 63 74 69 6f | 6e 28 6d 79 50 65 6e 67 |bleActio|n(myPeng|
|00001400| 75 69 6e 4f 6e 65 41 63 | 74 69 6f 6e 2c 20 6b 50 |uinOneAc|tion, kP|
|00001410| 61 72 65 6e 74 41 74 6f | 6d 49 73 43 6f 6e 74 61 |arentAto|mIsConta|
|00001420| 69 6e 65 72 2c 20 6b 51 | 54 45 76 65 6e 74 4d 6f |iner, kQ|TEventMo|
|00001430| 75 73 65 45 78 69 74 2c | 20 30 2c 20 4e 55 4c 4c |useExit,| 0, NULL|
|00001440| 2c 20 30 2c 20 6b 54 61 | 72 67 65 74 53 70 72 69 |, 0, kTa|rgetSpri|
|00001450| 74 65 49 44 2c 20 28 76 | 6f 69 64 20 2a 29 6b 47 |teID, (v|oid *)kG|
|00001460| 6f 54 6f 4e 65 78 74 53 | 70 72 69 74 65 49 44 2c |oToNextS|priteID,|
|00001470| 20 66 61 6c 73 65 2c 20 | 4e 55 4c 4c 29 3b 0d 09 | false, |NULL);..|
|00001480| 41 64 64 53 70 72 69 74 | 65 53 65 74 56 69 73 69 |AddSprit|eSetVisi|
|00001490| 62 6c 65 41 63 74 69 6f | 6e 28 6d 79 50 65 6e 67 |bleActio|n(myPeng|
|000014a0| 75 69 6e 4f 6e 65 41 63 | 74 69 6f 6e 2c 20 6b 50 |uinOneAc|tion, kP|
|000014b0| 61 72 65 6e 74 41 74 6f | 6d 49 73 43 6f 6e 74 61 |arentAto|mIsConta|
|000014c0| 69 6e 65 72 2c 20 6b 51 | 54 45 76 65 6e 74 4d 6f |iner, kQ|TEventMo|
|000014d0| 75 73 65 45 6e 74 65 72 | 2c 20 30 2c 20 4e 55 4c |useEnter|, 0, NUL|
|000014e0| 4c 2c 20 30 2c 20 6b 54 | 61 72 67 65 74 53 70 72 |L, 0, kT|argetSpr|
|000014f0| 69 74 65 49 44 2c 20 28 | 76 6f 69 64 20 2a 29 6b |iteID, (|void *)k|
|00001500| 47 6f 54 6f 45 6e 64 53 | 70 72 69 74 65 49 44 2c |GoToEndS|priteID,|
|00001510| 20 74 72 75 65 2c 20 4e | 55 4c 4c 29 3b 0d 09 41 | true, N|ULL);..A|
|00001520| 64 64 53 70 72 69 74 65 | 53 65 74 56 69 73 69 62 |ddSprite|SetVisib|
|00001530| 6c 65 41 63 74 69 6f 6e | 28 6d 79 50 65 6e 67 75 |leAction|(myPengu|
|00001540| 69 6e 4f 6e 65 41 63 74 | 69 6f 6e 2c 20 6b 50 61 |inOneAct|ion, kPa|
|00001550| 72 65 6e 74 41 74 6f 6d | 49 73 43 6f 6e 74 61 69 |rentAtom|IsContai|
|00001560| 6e 65 72 2c 20 6b 51 54 | 45 76 65 6e 74 4d 6f 75 |ner, kQT|EventMou|
|00001570| 73 65 45 78 69 74 2c 20 | 30 2c 20 4e 55 4c 4c 2c |seExit, |0, NULL,|
|00001580| 20 30 2c 20 6b 54 61 72 | 67 65 74 53 70 72 69 74 | 0, kTar|getSprit|
|00001590| 65 49 44 2c 20 28 76 6f | 69 64 20 2a 29 6b 47 6f |eID, (vo|id *)kGo|
|000015a0| 54 6f 45 6e 64 53 70 72 | 69 74 65 49 44 2c 20 66 |ToEndSpr|iteID, f|
|000015b0| 61 6c 73 65 2c 20 4e 55 | 4c 4c 29 3b 0d 09 41 64 |alse, NU|LL);..Ad|
|000015c0| 64 53 70 72 69 74 65 54 | 6f 53 61 6d 70 6c 65 28 |dSpriteT|oSample(|
|000015d0| 6d 79 53 61 6d 70 6c 65 | 2c 20 6d 79 50 65 6e 67 |mySample|, myPeng|
|000015e0| 75 69 6e 4f 6e 65 41 63 | 74 69 6f 6e 2c 20 6b 50 |uinOneAc|tion, kP|
|000015f0| 65 6e 67 75 69 6e 4f 6e | 65 53 70 72 69 74 65 49 |enguinOn|eSpriteI|
|00001600| 44 29 3b 0d 09 51 54 57 | 69 72 65 64 5f 41 64 64 |D);..QTW|ired_Add|
|00001610| 43 75 72 73 6f 72 43 68 | 61 6e 67 65 4f 6e 4d 6f |CursorCh|angeOnMo|
|00001620| 75 73 65 4f 76 65 72 28 | 6d 79 53 61 6d 70 6c 65 |useOver(|mySample|
|00001630| 2c 20 6b 50 65 6e 67 75 | 69 6e 4f 6e 65 53 70 72 |, kPengu|inOneSpr|
|00001640| 69 74 65 49 44 29 3b 0d | 09 51 54 44 69 73 70 6f |iteID);.|.QTDispo|
|00001650| 73 65 41 74 6f 6d 43 6f | 6e 74 61 69 6e 65 72 28 |seAtomCo|ntainer(|
|00001660| 6d 79 50 65 6e 67 75 69 | 6e 4f 6e 65 41 63 74 69 |myPengui|nOneActi|
|00001670| 6f 6e 29 3b 0d 0d 09 2f | 2f 20 61 64 64 20 70 65 |on);.../|/ add pe|
|00001680| 6e 67 75 69 6e 20 74 77 | 6f 0d 09 6d 79 45 72 72 |nguin tw|o..myErr|
|00001690| 20 3d 20 51 54 43 6f 70 | 79 41 74 6f 6d 28 6d 79 | = QTCop|yAtom(my|
|000016a0| 50 65 6e 67 75 69 6e 54 | 77 6f 2c 20 6b 50 61 72 |PenguinT|wo, kPar|
|000016b0| 65 6e 74 41 74 6f 6d 49 | 73 43 6f 6e 74 61 69 6e |entAtomI|sContain|
|000016c0| 65 72 2c 20 26 6d 79 50 | 65 6e 67 75 69 6e 54 77 |er, &myP|enguinTw|
|000016d0| 6f 41 63 74 69 6f 6e 29 | 3b 0d 09 69 66 20 28 6d |oAction)|;..if (m|
|000016e0| 79 45 72 72 20 21 3d 20 | 6e 6f 45 72 72 29 0d 09 |yErr != |noErr)..|
|000016f0| 09 67 6f 74 6f 20 62 61 | 69 6c 3b 0d 0d 09 2f 2f |.goto ba|il;...//|
|00001700| 20 62 6c 69 6e 6b 20 77 | 68 65 6e 20 63 6c 69 63 | blink w|hen clic|
|00001710| 6b 65 64 20 6f 6e 0d 09 | 41 64 64 53 70 72 69 74 |ked on..|AddSprit|
|00001720| 65 53 65 74 49 6d 61 67 | 65 49 6e 64 65 78 41 63 |eSetImag|eIndexAc|
|00001730| 74 69 6f 6e 28 6d 79 50 | 65 6e 67 75 69 6e 54 77 |tion(myP|enguinTw|
|00001740| 6f 41 63 74 69 6f 6e 2c | 20 6b 50 61 72 65 6e 74 |oAction,| kParent|
|00001750| 41 74 6f 6d 49 73 43 6f | 6e 74 61 69 6e 65 72 2c |AtomIsCo|ntainer,|
|00001760| 20 6b 51 54 45 76 65 6e | 74 4d 6f 75 73 65 43 6c | kQTEven|tMouseCl|
|00001770| 69 63 6b 2c 20 30 2c 20 | 4e 55 4c 4c 2c 20 30 2c |ick, 0, |NULL, 0,|
|00001780| 20 30 2c 20 4e 55 4c 4c | 2c 20 6b 50 65 6e 67 75 | 0, NULL|, kPengu|
|00001790| 69 6e 43 6c 6f 73 65 64 | 49 6e 64 65 78 2c 20 4e |inClosed|Index, N|
|000017a0| 55 4c 4c 29 3b 0d 09 41 | 64 64 53 70 72 69 74 65 |ULL);..A|ddSprite|
|000017b0| 53 65 74 49 6d 61 67 65 | 49 6e 64 65 78 41 63 74 |SetImage|IndexAct|
|000017c0| 69 6f 6e 28 6d 79 50 65 | 6e 67 75 69 6e 54 77 6f |ion(myPe|nguinTwo|
|000017d0| 41 63 74 69 6f 6e 2c 20 | 6b 50 61 72 65 6e 74 41 |Action, |kParentA|
|000017e0| 74 6f 6d 49 73 43 6f 6e | 74 61 69 6e 65 72 2c 20 |tomIsCon|tainer, |
|000017f0| 6b 51 54 45 76 65 6e 74 | 4d 6f 75 73 65 43 6c 69 |kQTEvent|MouseCli|
|00001800| 63 6b 45 6e 64 2c 20 30 | 2c 20 4e 55 4c 4c 2c 20 |ckEnd, 0|, NULL, |
|00001810| 30 2c 20 30 2c 20 4e 55 | 4c 4c 2c 20 6b 50 65 6e |0, 0, NU|LL, kPen|
|00001820| 67 75 69 6e 46 6f 72 77 | 61 72 64 49 6e 64 65 78 |guinForw|ardIndex|
|00001830| 2c 20 4e 55 4c 4c 29 3b | 0d 0d 09 41 64 64 51 54 |, NULL);|...AddQT|
|00001840| 45 76 65 6e 74 41 74 6f | 6d 28 6d 79 50 65 6e 67 |EventAto|m(myPeng|
|00001850| 75 69 6e 54 77 6f 41 63 | 74 69 6f 6e 2c 20 6b 50 |uinTwoAc|tion, kP|
|00001860| 61 72 65 6e 74 41 74 6f | 6d 49 73 43 6f 6e 74 61 |arentAto|mIsConta|
|00001870| 69 6e 65 72 2c 20 6b 51 | 54 45 76 65 6e 74 4d 6f |iner, kQ|TEventMo|
|00001880| 75 73 65 43 6c 69 63 6b | 45 6e 64 54 72 69 67 67 |useClick|EndTrigg|
|00001890| 65 72 42 75 74 74 6f 6e | 2c 20 26 6d 79 45 76 65 |erButton|, &myEve|
|000018a0| 6e 74 41 74 6f 6d 29 3b | 0d 0d 09 2f 2f 20 74 6f |ntAtom);|...// to|
|000018b0| 67 67 6c 65 20 74 68 65 | 20 6d 6f 76 69 65 20 72 |ggle the| movie r|
|000018c0| 61 74 65 20 61 6e 64 20 | 62 6f 74 68 20 6f 66 20 |ate and |both of |
|000018d0| 74 68 65 20 62 69 72 64 | 73 27 20 67 72 61 70 68 |the bird|s' graph|
|000018e0| 69 63 73 20 6d 6f 64 65 | 73 0d 09 51 54 57 69 72 |ics mode|s..QTWir|
|000018f0| 65 64 5f 41 64 64 50 65 | 6e 67 75 69 6e 54 77 6f |ed_AddPe|nguinTwo|
|00001900| 43 6f 6e 64 69 74 69 6f | 6e 61 6c 41 63 74 69 6f |Conditio|nalActio|
|00001910| 6e 73 28 6d 79 50 65 6e | 67 75 69 6e 54 77 6f 41 |ns(myPen|guinTwoA|
|00001920| 63 74 69 6f 6e 2c 20 6d | 79 45 76 65 6e 74 41 74 |ction, m|yEventAt|
|00001930| 6f 6d 29 3b 0d 0d 09 51 | 54 57 69 72 65 64 5f 41 |om);...Q|TWired_A|
|00001940| 64 64 57 72 61 70 61 72 | 6f 75 6e 64 4d 61 74 72 |ddWrapar|oundMatr|
|00001950| 69 78 4f 6e 49 64 6c 65 | 28 6d 79 50 65 6e 67 75 |ixOnIdle|(myPengu|
|00001960| 69 6e 54 77 6f 41 63 74 | 69 6f 6e 29 3b 0d 0d 09 |inTwoAct|ion);...|
|00001970| 41 64 64 53 70 72 69 74 | 65 54 6f 53 61 6d 70 6c |AddSprit|eToSampl|
|00001980| 65 28 6d 79 53 61 6d 70 | 6c 65 2c 20 6d 79 50 65 |e(mySamp|le, myPe|
|00001990| 6e 67 75 69 6e 54 77 6f | 41 63 74 69 6f 6e 2c 20 |nguinTwo|Action, |
|000019a0| 6b 50 65 6e 67 75 69 6e | 54 77 6f 53 70 72 69 74 |kPenguin|TwoSprit|
|000019b0| 65 49 44 29 3b 0d 09 51 | 54 44 69 73 70 6f 73 65 |eID);..Q|TDispose|
|000019c0| 41 74 6f 6d 43 6f 6e 74 | 61 69 6e 65 72 28 6d 79 |AtomCont|ainer(my|
|000019d0| 50 65 6e 67 75 69 6e 54 | 77 6f 41 63 74 69 6f 6e |PenguinT|woAction|
|000019e0| 29 3b 0d 09 0d 09 2f 2f | 20 61 64 64 20 61 6e 20 |);....//| add an |
|000019f0| 61 63 74 69 6f 6e 20 66 | 6f 72 20 77 68 65 6e 20 |action f|or when |
|00001a00| 74 68 65 20 6b 65 79 20 | 66 72 61 6d 65 20 69 73 |the key |frame is|
|00001a10| 20 6c 6f 61 64 65 64 2c | 20 74 6f 20 73 65 74 20 | loaded,| to set |
|00001a20| 74 68 65 20 6d 6f 76 69 | 65 27 73 20 6c 6f 6f 70 |the movi|e's loop|
|00001a30| 69 6e 67 20 6d 6f 64 65 | 20 74 6f 20 70 61 6c 69 |ing mode| to pali|
|00001a40| 6e 64 72 6f 6d 65 3b 0d | 09 2f 2f 20 6e 6f 74 65 |ndrome;.|.// note|
|00001a50| 20 74 68 61 74 20 74 68 | 69 73 20 77 69 6c 6c 20 | that th|is will |
|00001a60| 61 63 74 75 61 6c 6c 79 | 20 62 65 20 74 72 69 67 |actually| be trig|
|00001a70| 67 65 72 65 64 20 65 76 | 65 72 79 20 74 69 6d 65 |gered ev|ery time|
|00001a80| 20 74 68 65 20 6b 65 79 | 20 66 72 61 6d 65 20 69 | the key| frame i|
|00001a90| 73 20 72 65 6c 6f 61 64 | 65 64 2c 0d 09 2f 2f 20 |s reload|ed,..// |
|00001aa0| 73 6f 20 69 66 20 74 68 | 65 20 6f 70 65 72 61 74 |so if th|e operat|
|00001ab0| 69 6f 6e 20 77 61 73 20 | 65 78 70 65 6e 73 69 76 |ion was |expensiv|
|00001ac0| 65 20 77 65 20 63 6f 75 | 6c 64 20 75 73 65 20 61 |e we cou|ld use a|
|00001ad0| 20 63 6f 6e 64 69 74 69 | 6f 6e 61 6c 20 74 6f 20 | conditi|onal to |
|00001ae0| 74 65 73 74 20 69 66 20 | 77 65 27 76 65 20 61 6c |test if |we've al|
|00001af0| 72 65 61 64 79 20 64 6f | 6e 65 20 69 74 0d 09 6d |ready do|ne it..m|
|00001b00| 79 4c 6f 6f 70 69 6e 67 | 46 6c 61 67 73 20 3d 20 |yLooping|Flags = |
|00001b10| 6c 6f 6f 70 54 69 6d 65 | 42 61 73 65 20 7c 20 70 |loopTime|Base | p|
|00001b20| 61 6c 69 6e 64 72 6f 6d | 65 4c 6f 6f 70 54 69 6d |alindrom|eLoopTim|
|00001b30| 65 42 61 73 65 3b 0d 09 | 41 64 64 4d 6f 76 69 65 |eBase;..|AddMovie|
|00001b40| 53 65 74 4c 6f 6f 70 69 | 6e 67 46 6c 61 67 73 41 |SetLoopi|ngFlagsA|
|00001b50| 63 74 69 6f 6e 28 6d 79 | 53 61 6d 70 6c 65 2c 20 |ction(my|Sample, |
|00001b60| 6b 50 61 72 65 6e 74 41 | 74 6f 6d 49 73 43 6f 6e |kParentA|tomIsCon|
|00001b70| 74 61 69 6e 65 72 2c 20 | 6b 51 54 45 76 65 6e 74 |tainer, |kQTEvent|
|00001b80| 46 72 61 6d 65 4c 6f 61 | 64 65 64 2c 20 6d 79 4c |FrameLoa|ded, myL|
|00001b90| 6f 6f 70 69 6e 67 46 6c | 61 67 73 29 3b 0d 00 00 |oopingFl|ags);...|
|00001ba0| 00 20 00 00 00 01 00 00 | 00 04 00 00 00 00 00 00 |. ......|........|
|00001bb0| 00 01 54 45 58 54 00 00 | 01 00 00 00 00 00 00 00 |..TEXT..|........|
|00001bc0| 00 00 00 00 01 00 00 00 | 1b 70 00 00 1a 70 00 00 |........|.p...p..|
|00001bd0| 00 46 07 ac 3e 30 02 6a | 00 00 00 1c 00 46 00 01 |.F..>0.j|.....F..|
|00001be0| 54 45 58 54 00 00 00 12 | 64 72 61 67 00 00 00 1e |TEXT....|drag....|
|00001bf0| 01 00 ff ff 00 00 00 00 | 00 a4 80 24 00 80 ff ff |........|...$....|
|00001c00| 00 00 1a 4c 00 a4 80 4c | |...L...L| |
+--------+-------------------------+-------------------------+--------+--------+